const express = require("express");

const {
  verifyAuth,
  verifyPermison
} = require("../middleware/auth.middleware");

const {
  create,
  detail,
  getList,
  update,
  remove
} = require("../controller/moment.controller")

const router = express.Router();

// 创建评论接口
router.post("/moment", verifyAuth, create);
// 常规风格的接口
// 
router.get("/getMomentId", detail);
router.get("/getMomentList", getList);
// 跟新接口
router.post("/updateMoment",verifyAuth, verifyPermison, update);
//删除接口
router.post("/deleteMoment", verifyAuth, verifyPermison, remove)


module.exports = router;